
  (function(){var templateCache = window.$templateCache||Ares.templateCache;templateCache.put('/app-ares3/ehr/ehr-management-home/ares3-ehr-management-home-view.html','
  <ares-tab states="states" root-state="ehrManagement"></ares-tab>');templateCache.put('/app-ares3/framework/ares3-side-bar/ares3-side-bar.html','
  <div class="ares3-sidebar-container"> 
   <ul class="nav nav-sidebar"> 
    <li class="nav-parent" ng-class="{\'nav-active active\' : checkMainMenuActive(navItem), \'hovering\': navItem === hoveringMainMenu}" ng-if="navItem.isVisible" ng-repeat="navItem in navItems" ng-mouseover="onMainMenuMouseOver(navItem)" ng-mouseleave="onMainMenuMouseLeave(navItem)"> <a href="" ng-click="refreshView(navItem)"> <i class="{{navItem.className}}"></i> <span>{{navItem.text}}</span> </a> 
     <div class="sidebar-sub-pop" ng-if="navItem.isHovering &amp;&amp; navItem.allowedSubItems &amp;&amp; navItem.allowedSubItems.length &gt; 0" ng-mouseover="onSubMenuMouseOver(navItem)" ng-mouseleave="onSubMenuMouseLeave(navItem)"> 
      <div class="sidebar-current-menu">
       {{navItem.text}}
      </div> 
      <ul class="sidebar-sub-ul"> 
       <li class="sidebar-sub-li" ng-repeat="subItem in navItem.allowedSubItems" ng-class="{\'active\' : checkActive(subItem, navItem),                \'has-children\': subItem.subItems.length &gt; 0,                \'expanded\': subItem.expanded}" ng-click="onSubItemClick(subItem)" ng-hide="!subItem.isVisible"> <a style="text-align: center;"> <i class="iconfont icon-zhankaixiangxia" ng-if="subItem.subItems.length &gt; 0 &amp;&amp; subItem.expanded"></i> <i class="iconfont icon-xiayibuchakangengduoqianjin" ng-if="subItem.subItems.length &gt; 0 &amp;&amp; !subItem.expanded"></i> <span>{{subItem.text}}</span> </a> 
        <ul class="sidebar-sub-sub-ul" ng-if="subItem.subItems.length &gt; 0" ng-show="subItem.expanded"> 
         <li class="sidebar-sub-sub-li" ng-repeat="subSubItem in subItem.subItems" ng-class="{\'active\' : checkActive(subSubItem, hoveringMainMenu)}" ng-click="$event.stopPropagation(); navigate(subSubItem)"> <a>{{subSubItem.text}}</a> </li> 
        </ul> </li> 
      </ul> 
     </div> </li> 
   </ul> 
   <div class="sidebar-sub" ng-show="currentMainMenu &amp;&amp; currentMainMenu.hasVisibleSubItem &amp;&amp; subMenuVisible"> 
    <div class="sidebar-current-menu">
     {{currentMainMenu.text}}
    </div> 
    <ul class="sidebar-sub-ul"> 
     <li class="sidebar-sub-li" ng-repeat="subItem in currentMainMenu.allowedSubItems" ng-class="{\'active\' : checkActive(subItem, currentMainMenu),                \'has-children\': subItem.subItems.length &gt; 0,                \'expanded\': subItem.expanded}" ng-click="onSubItemClick(subItem)" ng-hide="!subItem.isVisible"> <a style="text-align: center;"> <i class="iconfont icon-zhankaixiangxia" ng-if="subItem.subItems.length &gt; 0 &amp;&amp; subItem.expanded"></i> <i class="iconfont icon-xiayibuchakangengduoqianjin" ng-if="subItem.subItems.length &gt; 0 &amp;&amp; !subItem.expanded"></i> <span>{{subItem.text}}</span> </a> 
      <ul class="sidebar-sub-sub-ul" ng-if="subItem.subItems.length &gt; 0" ng-show="subItem.expanded"> 
       <li class="sidebar-sub-sub-li" ng-repeat="subSubItem in subItem.subItems" ng-class="{\'active\' : checkActive(subSubItem, currentMainMenu)}" ng-click="$event.stopPropagation(); navigate(subSubItem)"> <a>{{subSubItem.text}}</a> </li> 
      </ul> </li> 
    </ul> 
   </div> 
   <div class="sidebar-sub-label-hide" ng-show="currentMainMenu &amp;&amp; currentMainMenu.hasVisibleSubItem &amp;&amp; subMenuVisible" ng-click="toggleSubMenuVisible(false)"></div> 
   <div class="sidebar-sub-label-show" ng-show="currentMainMenu &amp;&amp; currentMainMenu.hasVisibleSubItem &amp;&amp; !subMenuVisible" ng-click="toggleSubMenuVisible(true)" data-toggle="tooltip" data-placement="right" data-container=".sidebar-sub-label-show" title="点击这里展开二级菜单"> 
   </div> 
   <div class="ares3-side-bar-bottom__search-container"> 
    <ares3-side-bar-search></ares3-side-bar-search> 
   </div>
  </div>');templateCache.put('/app-ares3/framework/ares3-side-bar-search/ares3-side-bar-search.html','
  <div class="ares3-side-bar-search-container"> 
   <div class="ares3-side-bar-search-box" ng-class="isShow ? \'stretch\' : \'shrink\'"> 
    <div class="ares3-side-bar-search__form-control"> 
     <i class="iconfont icon-sousuo"></i> 
     <input type="text" placeholder="搜索菜单" ng-model="searchText" ng-change="onSearch()" ng-click="onShowSearch($event)" /> 
    </div> 
    <div class="ares3-side-bar-search__list" ng-if="isShow &amp;&amp; menus.length &gt; 0"> 
     <div class="ares3-side-bar-search__list-scroll"> 
      <div class="ares3-side-bar-search__item" ng-repeat="menu in menus" ng-click="onMenuItem(menu)" ng-bind-html="menu.html"></div> 
     </div> 
    </div> 
   </div>
  </div>');templateCache.put('/app-ares3/framework/ares3-top-bar/ares3-top-bar.html','
  <div class="topbar" id="ares3-top-bar"> 
   <style scoped="">        .topbar .list-ul {            width: 100%;            list-style-type: none;        }        .topbar .list-item {            opacity: 0.89;            background: #00afc8;            border-radius: 4px;            margin-bottom: 2px;            line-height: 121px;        }        .topbar .message-item {            height: 100%;            width: 100%;        }            .topbar .message-item td {                color: white;                line-height: 36px;                text-align: left;            }                .topbar .message-item td a {                    color: white;                }        .topbar .list-ul-bell {            opacity: 0.89;            background: #3d3d3d;            width: 400px;            height: 40px;            list-style-type: none;        }        .topbar .popover {            max-width: 700px;            min-height: 170px;        }        .topbar .wechat > div > a {            text-align: center;            display: inline-block;            width: 30px;            height: 30px;            border-radius: 50%;            text-decoration: none;            border: 1px solid #fff;        }            .topbar .wechat > div > a > i {                line-height: 30px;                font-size: 20px;                color: #fff;            }        .topbar .green-bg {            line-height: 28px !important;            height: 30px !important;            padding: 0px !important;            width: 30px;            border: 1px solid #fff;            border-radius: 50%;            background: #2cc87e;        }        .topbar .header-right .navbar-nav > li > a.green-bg:hover,        .topbar .header-right .navbar-nav > li > a.green-bg:focus {            background: #2cc87e !important;        }        #online-consult {            cursor: pointer;            line-height: 28px !important;            height: 30px !important;            width: 60px !important;            padding: 0;            text-align: center;        }        .topbar .topnav table tr td a.show-credits-count:focus {            text-decoration: none !important;        }        .topbar .identityInfo .btn-identity-info2 {            margin-right: 10px;            margin-top: 1px;            height: 34px;        }        @media screen and (max-width: 1200px) {            .topbar .hide-on-narrow-screen {                display: none !important;            }        }        .topbar .top-bar-expiration-hint,        .topbar .top-bar-upgrade-hint {            background: #FF6F41;            color: #fff;            height: 40px;            width: calc(100% - 80px);            line-height: 40px;            font-size: 14px;            padding-left: 16px;            position: fixed;            top: 50px;            left: 80px;        }        .topbar .top-bar-upgrade-hint {            background: #F7A51D;        }            .topbar .top-bar-expiration-hint .btn,            .topbar .top-bar-upgrade-hint .btn {                margin-left: 20px;                color: #FF6F41;            }            .topbar .top-bar-expiration-hint .close-btn,            .topbar .top-bar-upgrade-hint .close-btn {                position: absolute;                display: inline-block;                right: 12px;                cursor: pointer;            }            .topbar .top-bar-upgrade-hint .close-forever {                position: absolute;                display: inline-block;                right: 38px;                cursor: pointer;            }        #yibao-channel-select {            height: 32px;            width: 90px;            border-color: #e4e5e7 !important;            border-radius: 4px;        }    </style> 
   <div class="header-left"> 
    <div class="office-name" ng-if="!isAdminOffice">
      {{officeName}} 
    </div> 
    <span class="divider" ng-if="!isAdminOffice&amp;&amp;!isGroup">|</span> 
    <a ng-click="goToEnterpriseCenter()" class="enterprise" ng-if="!isGroup"> <i class="iconfont icon-zhensuozhongxin"></i> 诊所概览 </a> 
    <div class="office-name" style="margin-left:10px;" ng-if="isShowNpsResearch"> 
     <a ng-click="npsResearchClick()" sensors-enabled="true" sensors-event-name="saasNPS" sensors-event-type="NPS问卷调查" class="enterprise"> <img src="/Content/imgs/ares3/ares3-nps-banner.png" style="width:113px;height:28px;" /> </a> 
    </div> 
   </div> 
   <div class="header-middle"> 
    <div class="patient-search"> 
     <form class="navbar-form patient-search-container" style="margin-top: 0;" ng-if="showPatientSearch"> 
      <ares-patient-search is-global-search="true" watermark="患者查询"></ares-patient-search> 
      <span ng-if="isReadIdentityCardEnabled"> <a ng-click="readIdentityInfo()" class="identity" ng-if="!patientValue"> <i class="iconfont icon-shenfenzheng1" style="font-size: 18px;"></i> 身份证 </a> </span> 
      <span ng-if="isYibaoGatewayEnabled &amp;&amp; isYibaoReadCardEnabled"> <a ng-click="readYibaoCard()" class="identity"> <i class="iconfont icon-renlianshibie" style="font-size: 18px;"></i> 医保卡 </a> </span> 
     </form> 
    </div> 
    <div class="yibao-channel" style="display: inline-flex;width: 100px;" ng-show="yibaoChannelDict.length&gt;1"> 
     <select ng-options="c.value as c.name for c in yibaoChannelDict" id="yibao-channel-select" ng-change="onSelectYibaoChannel(yibaoUseChannel)" ng-model="yibaoUseChannel"></select> 
    </div> 
    <div class="new-patient" style="display: inline-flex;width: 100px;" ng-if="showPatientCreate"> 
     <button type="button" class="btn ares3-btn" ng-click="createPatient()" sensors-enabled="true" sensors-event-name="AppSideBarController" sensors-event-type="新增患者"> <i class="iconfont icon-zengjiajiahao" aria-hidden="true" style="font-size: 13px;padding-right: 4px"></i> 新增患者 </button> 
    </div> 
   </div> 
   <div class="header-right" ng-if="isInitialized"> 
    <ul style="display: flex; align-items: center;"> 
     <li ares-authorize="scrmMgmt.message" class="\'system-nav" wechat\'="" ng-show="!isAdminOffice"> <a id="main-conversation-messageicon" ng-click="openMainConversation()" sensors-enabled="true" sensors-event-name="AppSideBarController" sensors-event-type="微信" ng-show="$root.scrmChat"> <i class="\'iconfont" icon-weixin3\'=""></i> 微信 <span id="main-conversation-weixin-count" ng-click="openMainConversation()" class="badge item-icon"></span> </a> <a ng-if="$root.isNewWxEnabled" ng-hide="$root.scrmChat"> <span href="" style="cursor:progress;"> <i class="\'iconfont" icon-weixin3\'=""></i> 微信 </span> </a> </li> 
     <li class="dropdown auto-dropdown memo system-nav" ng-show="!isCustomizeOpen|| isCustomizeOpen&amp;&amp;extension.isShowServiceLink" ares-authorize="memoManagement.record"> <a href="" id="\'add-memo\'" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" aria-expanded="false" style="cursor:pointer;text-decoration: none"> <i class="iconfont icon-beiwanglu3" style="margin-top: 0;margin-left: 4px;"></i> 备忘 </a> 
      <ul class="dropdown-menu" style="width: 93px !important;min-width: auto;left: 0;margin-left: -20px;min-width: auto !important;"> 
       <li><a href="" ng-click="editMemoClick()" style="display: flex"><span>写备忘</span></a></li> 
       <li><a href="" ng-click="memoCenterClick()" style="display: flex"><span>备忘中心</span></a></li> 
      </ul> </li> 
     <li class="system-nav consult"> <a id="\'online-consult\'" data-placement="bottom" ng-click="onWebchatClick()" sensors-enabled="true" sensors-event-name="AppSideBarController" sensors-event-type="在线咨询"> <i class="iconfont icon-kefu"></i> 客服 </a> </li> 
     <li class="system-nav help"> <a ng-click="linkHelpPage()" target="_blank" sensors-enabled="true" id="ares3-topbar-help-icon" sensors-event-name="AppSideBarController" sensors-event-type="打开帮助页面" data-toggle="tooltip" data-placement="bottom" data-title="您可以在这里找到3.0帮助手册"> <i class="iconfont icon-bangzhu1"></i> 帮助 </a> </li> 
     <message-view ng-if="!isAdminOffice" class="system-nav message"></message-view> 
     <li class="dropdown  user-header" id="user-header"> <a data-toggle="dropdown" data-close-others="true" aria-expanded="false" id="topbarDropdown"> <span class="touxiang"> {{::login.userName | limitTo: -2}} </span> </a> 
      <ul class="dropdown-menu"> 
       <li class="system-account"> <a> <span class="touxiang">{{::login.userName | limitTo: -2}}</span> <span ng-class="{\'ares-ghost\':login.isGhost}" style="color:#3E3E3C;font-size: 18px;font-weight: 600;padding-left: 12px;padding-top:4px">{{::login.userName}}</span> </a> </li> 
       <li><a href="" ng-click="switchOffice()" ng-show="canSwitchOffice"><i class="iconfont icon-qiehuanzhensuo"></i><span>切换诊所</span></a></li> 
       <li><a href="" ng-click="changePwd()"><i class="iconfont icon-xiugaimima"></i><span>修改密码</span></a></li> 
       <li><a href="" ng-click="systemTool()"><i class="iconfont icon-xitongshezhi"></i><span>系统工具</span></a></li> 
       <li ng-if="canReturnAres2"><a href="" ng-click="switchOldVersion()"><i class="iconfont icon-huidaojiuban"></i><span>回到旧版</span></a></li> 
       <li><a href="" ng-click="logOff()"><i class="iconfont icon-tuichu"></i><span>退出</span></a></li> 
      </ul> </li> 
    </ul> 
   </div> 
   <div style="position: fixed; top: 50px; right: 0;" class="container-message" ng-show="!notTrouble" ng-if="!isAdminOffice"> 
    <div style="width: 221px; padding-right: 20px; padding-top: 20px; z-index: 888; postion: absolute;" ng-show="isShowMessage(messageData)" id="message-notice"> 
     <ul class="list-ul" style="border:1px;border-color:white;"> 
      <li style="width: 100%;" class="list-item" ng-repeat="message in messageData" ng-show="message.isShow&amp;&amp;getUnReadCount(message)&gt;0"> 
       <table class="message-item"> 
        <tbody>
         <tr> 
          <td colspan="2"> <span style="padding-left:23px;">{{message.menuName}}：{{getUnReadCount(message)}}条</span> </td> 
         </tr> 
         <tr> 
          <td colspan="2"><span style="padding-left:23px;">{{message.createTimeText}}</span></td> 
         </tr> 
         <tr ng-if="message.menuName == \'网络预约\'"> 
          <td style="border-top: 1px solid white; border-right: 1px solid white;text-align:center;"> <a ng-click="goToNavigate(message)" sensors-enabled="true" sensors-event-name="AppSideBarController" sensors-event-type="立即查看">立即查看</a> </td> 
          <td style="text-align:center" ng-if="!isApptApplyDisabled"> <a ng-click="hideThis(message)" sensors-enabled="true" sensors-event-name="AppSideBarController" sensors-event-type="稍后提醒">稍后提醒</a> </td> 
         </tr> 
         <tr ng-if="message.menuName != \'网络预约\'"> 
          <td style="border-top: 1px solid white; border-right: 1px solid white;text-align:center;"> <a ng-click="goToNavigate(message)" sensors-enabled="true" sensors-event-name="AppSideBarController" sensors-event-type="立即查看">立即查看</a> </td> 
          <td style="text-align:center"> <a ng-click="hideThis(message)" sensors-enabled="true" sensors-event-name="AppSideBarController" sensors-event-type="稍后提醒">稍后提醒</a> </td> 
         </tr> 
        </tbody>
       </table> </li> 
     </ul> 
    </div> 
   </div> 
   <div class="topbar-draggable-box" id="J_topbar-draggable-box" ng-show="isShowStrongMessage" ng-style="{\'height\': !isShowAppt ? \'44px\' : \'auto\'}"> 
    <style>            .topbar-draggable-box {                position: absolute;                right: 280px;                top: 60px;                width: 112px;                height: auto;                box-sizing: border-box;                background-color: #00a6c9;                border-radius: 6px;            }                .topbar-draggable-box .topbar-draggable-header {                    width: 100%;                    height: 44px;                    border: #00a6c9 solid 1px;                    border-radius: 4px;                    overflow: hidden;                }                    .topbar-draggable-box .topbar-draggable-header .draggable-logo {                        float: left;                        width: 50px;                        height: 44px;                        cursor: move;                        line-height: 44px;                        text-align: center;                    }                .topbar-draggable-box .topbar-draggable-toggle {                    display: inline-block;                    width: calc(100% - 50px);                    height: 42px;                    text-align: center;                    font-size: 12px;                    padding-top: 6px;                }                .topbar-draggable-box .off {                    background-color: #FFFFFF;                    cursor: pointer;                    color: #00a6c9;                }                .topbar-draggable-box .on {                    line-height: 44px;                    color: #fff;                    padding-top: 0;                }                .topbar-draggable-box .topbar-draggable-body {                    padding: 0 6px;                    box-sizing: border-box;                    background-color: #00a6c9;                    width: 100%;                    border-bottom-left-radius: 4px;                    border-bottom-right-radius: 4px;                }                    .topbar-draggable-box .topbar-draggable-body .content {                        background-color: #fff;                        width: 100%;                        border-radius: 5px;                        position: relative;                        font-size: 12px;                        padding: 6px;                    }                        .topbar-draggable-box .topbar-draggable-body .content > div > ul > li .apptContent:hover {                            color: #00a6c9;                            cursor: pointer;                        }                        .topbar-draggable-box .topbar-draggable-body .content .apptContent .apptIcon {                            display: inline-block;                            height: 14px;                            width: 12px;                            background: #ffffad;                            color: #e5b12c;                            font-size: 12px;                            /* line-height: 32px; */                            text-align: center;                        }                        .topbar-draggable-box .topbar-draggable-body .content .apptArrowIcon {                            height: 14px;                            width: 12px;                            color: #00a6c9;                            font-size: 12px;                            text-align: right;                            float: right;                        }                    .topbar-draggable-box .topbar-draggable-body .more {                        cursor: pointer;                        color: #00a6c9;                        width: 100%;                        text-align: center;                        height: 28px;                        line-height: 28px;                        border-top: 1px dotted #ddd;                    }                .topbar-draggable-box .topbar-draggable-off-btn {                    width: 100%;                    cursor: pointer;                    text-align: center;                    color: #fff;                    font-size: 12px;                    padding: 3px 0;                }        </style> 
    <div class="topbar-draggable-header clearfix"> 
     <div class="draggable-logo"> 
      <img src="/Content/imgs/logo-icon.png" style="width: 34px; height: 34px;" /> 
     </div> 
     <div class="topbar-draggable-toggle" ng-class="isShowAppt ? \'on\' : \'off\'" ng-click="draggableToggle(\'on\')"> 
      <div>
       网络预约
      </div> 
      <i ng-if="!isShowAppt" class="iconfont icon-zhankaixiangxia" style="font-size: 12px;"></i> 
     </div> 
    </div> 
    <div class="topbar-draggable-body" ng-if="isShowAppt"> 
     <div class="content"> 
      <div ng-if="checkoutRemind &amp;&amp; checkoutRemind.length &gt; 0"> 
       <div style="color: #00A6C9;margin-top: 3px;">
        核销提醒
       </div> 
       <ul> 
        <li ng-repeat="checkout in checkoutRemind track by $index" style="border-bottom: 1px dotted #ddd;margin-top: 3px;"> 
         <div class="apptContent" style="margin-bottom: 3px;" ng-click="goToApptApply(checkout.id)">
           {{checkout.content}} 
          <span class="apptArrowIcon">&gt;</span> 
         </div> </li> 
       </ul> 
      </div> 
      <div ng-if="applyRemind &amp;&amp; applyRemind.length &gt; 0"> 
       <div style="color: #00A6C9; margin-top: 3px;">
        预约提醒
       </div> 
       <ul> 
        <li ng-repeat="appt in applyRemind track by $index" style="border-bottom: 1px dotted #ddd;margin-top: 3px;"> 
         <div>
           {{appt.createTime | toMonthAndDayString}} 
         </div> 
         <div class="apptContent" style="margin-bottom: 3px;" ng-click="goToApptApply(appt.id)"> 
          <span class="apptIcon" ng-if="appt.isOver30m">!</span> {{appt.content}} 
          <span class="apptArrowIcon">&gt;</span> 
         </div> </li> 
       </ul> 
      </div> 
      <div class="more" ng-click="goToApptApply()" ng-if="isShowMoreMessage">
       查看更多
      </div> 
     </div> 
     <div class="topbar-draggable-off-btn" ng-click="draggableToggle(\'off\')">
       收起 
      <i class="iconfont icon-xiangshang" style="font-size: 12px;"></i> 
     </div> 
    </div> 
   </div> 
   <div class="top-bar-expiration-hint" ng-if="showExpiredHint"> 
    <span class="text">系统将于{{expiredDate}}到期，过期后系统将不能使用。 以免影响正常工作， 请在到期日前及时续费。</span> 
    <span>需要帮助请咨询您的专属客户成功经理<span ng-if="successConsutant">：{{successConsutant.consultantName}} {{successConsutant.phoneNumer}}</span>。</span> 
    <button class="btn btn-default" ng-click="openBmsSaasModal(\'续费\')" sensors-enabled="true" sensors-event-name="OfficeExpireReminder" sensors-event-type="即将到期续费"> 立即续费 </button> 
    <span class="close-btn" ng-click="hideExpiredHint()"> <i class="iconfont icon-guanbi"></i> </span> 
   </div> 
   <div class="top-bar-expiration-hint" ng-if="showAcceptanceReportHint"> 
    <span class="text"> 尊敬的e看牙用户，您的系统于 {{officeOpenDate}} 开户，请您在15天安装调试期内对系统培训及功能进行验收反馈，以体验全部的服务。 </span> 
    <button class="btn btn-default" ng-click="acceptanceDialog()" ng-if="allowedToAcceptance" sensors-enabled="true" sensors-event-name="AcceptanceReport" sensors-event-type="实施验收单"> 立即验收 </button> 
    <span class="close-btn" ng-click="hideAcceptanceReportHint()"> <i class="iconfont icon-guanbi"></i> </span> 
   </div> 
   <div class="top-bar-upgrade-hint" ng-if="showUpgradeHint"> 
    <span class="text">您当前正在使用基础版，如需会员、微信营销、连锁管理等功能模块，请升级至更高版本。咨询客服热线：400-821-3720</span> 
    <button class="btn btn-default" ng-click="goToBmsEnterpriseSoftware()" sensors-enabled="true" sensors-event-name="OfficeUpgradeReminder" sensors-event-type="基础版升级"> 立即升级 </button> 
    <span class="close-forever" ng-click="hideUpgradeHintForever()"> 不再提醒 </span> 
    <span class="close-btn" ng-click="hideUpgradeHint()"> <i class="iconfont icon-guanbi"></i> </span> 
   </div>
  </div>');})();